<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
    请输入张三的成绩<input type="text" v-model="message" >
    <h2>张三的成绩为<a v-if="message>=90">{{message1}}</a>
        <a v-if="message>=75 && message<90">{{message2}}</a>
        <a v-if="message>=60 && message<75">{{message3}}</a>
        <a v-if="message<60 && message>0">{{message4}}</a>
    </h2>

    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:"#app",
            data:{
                message:'',
                message1:"优秀",
                message2:"良好",
                message3:"及格",
                message4:"不及格",


            },


        })
    </script>
</body>
</html>